package com.moore.mapper;

import com.moore.bean.Allocation;
import com.moore.bean.Apartment;
import com.moore.bean.Message;
import com.moore.bean.TenantInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AuditMapper {

    List<TenantInfo> getAuditList(@Param("tenantInfo") TenantInfo tenantInfo);

    int getAuditCount(@Param("tenantInfo") TenantInfo tenantInfo);

    int updateTenant(@Param("tenantList") List<TenantInfo> tenantInfo);

    int insertMessage(@Param("messages")List<Message> messages);

    List<Apartment> getApartments();

    int updateApartment(@Param("apartments")List<Apartment> apartments);

    int insertAllocation(@Param("allocations") List<Allocation> allocations);
}
